package org.douxiaoban.client.widget;

import android.content.Context;

import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;

/**
 * 提供一些基础操作,如滚动条,,页面刷新等操作,
 * @author 6a209
 * 6:08:42 PM May 30, 2012
 */
public class BaseTabView extends FrameLayout{

	protected FrameLayout mBody;
	protected  DouProgressbar mProgress;
	
	public BaseTabView(Context context){
		this(context, null);
	}
	
	public BaseTabView(Context context, AttributeSet attrs) {
		super(context, attrs);
		initView();
	}
	
	public void addToBodyView(View view){
		mBody.addView(view);
	}
	
	public void showProgress(){
		mProgress.showProgress();
	}
	
	public void hideProgress(){
		mProgress.hideProgress();
	}
	
	private void initView(){
		mBody = new FrameLayout(getContext());
		addView(mBody);
		mProgress = new DouProgressbar(getContext());
		addView(mProgress);
	}
	
	protected void refresh(){
		
	}
}